package com.bwie.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @description :
 * @Author QiHainan
 * @Create 2025/4/22 10:59
 * @Version 1.0
 */
@Data
public class LoginForm implements Serializable {
    /**
     * 手机号
     */
    @NotBlank(message = "请输入手机号")
    @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$", message = "请输入正确的手机号")
    private String userMobile;

    /**
     * 验证码
     */
    @NotBlank(message = "请输入验证码")
    private String code;
}
